﻿ <Controls:MetroWindow x:Class="MyMediaPlayer.Window_Preference"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:pro ="clr-namespace:MyMediaPlayer.Properties"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                       ShowMaxRestoreButton="False"
                       ShowMinButton="False"
        Title="Preference" Height="360" Width="200"
                       BorderBrush="{DynamicResource AccentColorBrush}"
                       WindowStartupLocation="CenterScreen"
                       BorderThickness="1"
                       WindowTransitionsEnabled="True"
                       EnableDWMDropShadow="False"
                       ResizeMode="NoResize"
                       Icon=".\R\settings.png"
                       Loaded="MetroWindow_Loaded"
                       >
    <Grid>
        <Grid.RowDefinitions>
            <!--<RowDefinition Height="110"></RowDefinition>-->
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <!--<StackPanel Margin="15,20,15,20" Grid.Row="0">
            <Label>Media Player</Label>
            <Label>Preference</Label>
            <Label>By</Label>
        </StackPanel>-->
        <StackPanel Margin="15,20,15,20" Grid.Row="0">
            <StackPanel  HorizontalAlignment="Stretch" >
                <Label VerticalAlignment="Center" HorizontalAlignment="Left">Enable Window Border</Label>
                <Controls:ToggleSwitchButton Name="tswbtn" Width="50" Height="25" HorizontalAlignment="Left" Checked="ToggleSwitchButton_Checked" Unchecked="tswbtn_Unchecked"/>
                <Label VerticalAlignment="Center" HorizontalAlignment="Left">Alway On Top</Label>
                <Controls:ToggleSwitchButton Name="tswbtnTopMost" Width="50" Height="25" HorizontalAlignment="Left" Checked="tswbtnTopMost_Checked" Unchecked="tswbtnTopMost_Unchecked"/>
                <Label VerticalAlignment="Center" HorizontalAlignment="Left">Application Them</Label>
                <ComboBox Name="cbo_Thems" Margin="5,5,5,0" SelectionChanged="ComboBox_SelectionChanged">
                    <ComboBoxItem Content="Red" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Green" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Blue" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Purple" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Orange" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Lime" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Emerald" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Teal" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Cyan" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Cobalt" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Indigo" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Violet" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Pink" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Magenta" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Crimson" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Amber" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Yellow" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Brown" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Olive" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Steel" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Mauve" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Taupe" HorizontalAlignment="Stretch"/>
                    <ComboBoxItem Content="Sienna" HorizontalAlignment="Stretch"/>
                </ComboBox>
                <Label Margin="5,5,5,0">Startup Volumn</Label>
                <Controls:NumericUpDown x:Name="nmUpDown"  Interval="5" Minimum="0" Maximum="100" InterceptArrowKeys="True" InterceptMouseWheel="True" Speedup="True" Margin="5,5,5,0" ValueChanged="nmUpDown_ValueChanged"></Controls:NumericUpDown>
                <Button Margin="5,13,5,0" Name="btnRestart" Click="btnRestart_Click" Foreground="Snow" MouseMove="Button_MouseMove" MouseLeave="btnRestart_MouseLeave" Background="{DynamicResource AccentColorBrush}">Restart</Button>
                <Label Margin="5,5,5,0">** Restart To Take Effect **</Label>
                <!--<Slider  Style="{DynamicResource FlatSlider}" TickPlacement="TopLeft" Minimum="1" Maximum="23" ></Slider>-->
            </StackPanel>
        </StackPanel>
        
    </Grid>
</Controls:MetroWindow>
